#ifndef CPPCALLPY_H
#define CPPCALLPY_H

#undef slots
#include <Python.h>
#define slots Q_SLOTS

class CppCallPy
{
public:
    CppCallPy();
    ~CppCallPy();

    int add_script_path(char* path);
    PyObject* import_py_file_name(char *name);
    PyObject* get_py_function(PyObject *py, char *func_name);
    PyObject* call_function(PyObject *fu, PyObject *args);
    int get_list_length(PyObject* l);
    PyObject* get_list_item(PyObject *l, int index);
};

#endif // CPPCALLPY_H
